import request from '@/utils/request'

export function problemPage(params) {
  return request({
    url: '/problem/page',
    method: 'POST',
    data: params,
  })
}

export function getProblem(id) {
  return request({
    url: '/problem?id=' + id,
    method: 'GET',
  })
}

export function getRandomProblem(limit) {
  return request({
    url: '/problem/random?limit=' + limit,
    method: 'GET',
  })
}

export function getTagWall() {
  return request({
    url: '/problem/tag',
    method: 'GET',
  })
}
